package controller

/**
 * @File : demoData.go
 * @Description : 测试使用的数据，创建数据库时由mySql包中的方法自动导入数据库
 * @Author : 吴概,陈锴,王帅
 * @Date : 2023/2/1
 */

// DemoUsers 用户测试列表
var DemoUsers = []User{
	{
		Id:              1,
		Name:            "Tester1",
		FollowCount:     1,
		FollowerCount:   1,
		IsFollow:        false,
		Token:           "114514",
		Password:        "111111",
		Avatar:          "https://cdn.pixabay.com/photo/2016/03/27/18/10/bear-1283347_1280.jpg",
		BackgroundImage: "https://cdn.pixabay.com/photo/2016/03/27/18/10/bear-1283347_1280.jpg",
		Signature:       "test user 1",
		TotalFavourited: 3,
		WorkCount:       2,
		FavouriteCount:  3,
	},
	{
		Id:              2,
		Name:            "Tester2",
		FollowCount:     1,
		FollowerCount:   1,
		IsFollow:        true,
		Token:           "1919810",
		Password:        "111111",
		Avatar:          "https://cdn.pixabay.com/photo/2016/03/27/18/10/bear-1283347_1280.jpg",
		BackgroundImage: "https://cdn.pixabay.com/photo/2016/03/27/18/10/bear-1283347_1280.jpg",
		Signature:       "test user 2",
		TotalFavourited: 3,
		WorkCount:       1,
		FavouriteCount:  3,
	},
}

// DemoVideos 视频测试列表
var DemoVideos = []Video{
	{
		Id:            1,
		Author:        DemoUsers[0],
		PlayUrl:       "https://www.w3schools.com/html/movie.mp4",
		CoverUrl:      "https://cdn.pixabay.com/photo/2016/03/27/18/10/bear-1283347_1280.jpg",
		FavoriteCount: 12,
		CommentCount:  1,
		IsFavorite:    false,
		Time:          "2006-01-02 15:04:05",
	},
	{
		Id:            2,
		Author:        DemoUsers[1],
		PlayUrl:       "https://www.w3schools.com/html/movie.mp4",
		CoverUrl:      "https://cdn.pixabay.com/photo/2016/03/27/18/10/bear-1283347_1280.jpg",
		FavoriteCount: 200,
		CommentCount:  2,
		IsFavorite:    false,
		Time:          "2006-01-08 15:04:05",
	},
	{
		Id:            3,
		Author:        DemoUsers[0],
		PlayUrl:       "https://www.w3schools.com/html/movie.mp4",
		CoverUrl:      "https://cdn.pixabay.com/photo/2016/03/27/18/10/bear-1283347_1280.jpg",
		FavoriteCount: 20000000,
		CommentCount:  3,
		IsFavorite:    false,
		Time:          "2006-01-06 15:04:10",
	},
}

// DemoCommentList 评论测试列表
var DemoCommentList = []Comment{
	{
		Id:      1,
		User:    DemoUsers[1],
		Content: "测试1",
		Time:    "12-01 15:04:10",
		VideoId: 1,
		UserId:  1,
	},
	{
		Id:      2,
		User:    DemoUsers[1],
		Content: "测试2",
		Time:    "12-01 15:04:20",
		VideoId: 1,
		UserId:  1,
	},
	{
		Id:      3,
		User:    DemoUsers[0],
		Content: "测试3",
		Time:    "01-20 15:04:10",
		VideoId: 1,
		UserId:  2,
	},
	{
		Id:      4,
		User:    DemoUsers[1],
		Content: "测试4",
		Time:    "05-12 15:04:10",
		VideoId: 3,
		UserId:  1,
	},
	{
		Id:      5,
		User:    DemoUsers[0],
		Content: "测试5",
		Time:    "09-30 15:04:10",
		VideoId: 3,
		UserId:  2,
	},
}
var DemoRelationList = []Relation{
	{
		Id:           1,
		FriendList:   "2",
		FollowList:   "2",
		FollowerList: "2",
	},
	{
		Id:           2,
		FriendList:   "1",
		FollowList:   "1",
		FollowerList: "1",
	},
}
var DemoPublishList = []Publish{
	{
		Id:          1,
		PublishList: "1,3",
	},
	{
		Id:          2,
		PublishList: "2",
	},
}
var DemoLikeList = []Like{
	{
		Id:       1,
		LikeList: "1,2,3",
	},
	{
		Id:       2,
		LikeList: "",
	},
}
